public class Java61 {
    public static void main(String[] args) {
        for (int i = 1; i <= 9; i++) {
            for (int j = 1; j <= i; j++) {
                System.out.print(j + "*" + i + "=" + j * i + "\t");
            }
            System.out.println("");
        }
        //多维数组
        /*int[][]arr={
                {1,2,3},
                00 01 02
                {4,5,6},
                10 11 12
                {7,8,9},
                20 21 22
        }*/
        int[][]arr=new int[3][];
        arr[0]=new int[]{11,12};
        arr[1]=new int[]{21,22,23};
        arr[2]=new int[]{31,32,33,34};
        int sum=0;
        for (int i=0;i<arr.length;i++){
            int group=0;
            for (int j=0;j<arr[i].length;j++){
                group+=arr[i][j];
            }
            sum+=group;
        }
        System.out.println("总额销售为："+sum);
    }
}
